/*
 * Copyright 2020 tu.cn All right reserved. This software is the
 * confidential and proprietary information of tu.cn ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Tu.cn
 */
package com.onedec.page.feign;

import com.onedec.entity.OnedecEmp;
import com.onedec.entity.OnedecFriendGroup;
import com.onedec.entity.OnedecMsgGroup;
import com.onedec.utils.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author 31014
 * @date 2020/7/13 15:35
 */
@FeignClient("message")
@RequestMapping("message")
public interface MessageClient {
    @GetMapping("mine")
    public ResponseEntity<OnedecEmp> getMine(@RequestParam Integer id) ;
    @GetMapping("friend")
    public ResponseEntity<List<OnedecFriendGroup>> getFriends(@RequestParam Integer id);
    @GetMapping("groups")
    public ResponseEntity<List<OnedecMsgGroup>> getGroups( @RequestParam Integer id) ;

}